package com.tcm.doctor.mapper;


import com.tcm.doctor.domain.entity.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DoctorMapper {
    int deleteByUserId(Long userId);

    int deleteLogicByUserId(Long userId);

    int insert(Doctor record);

    int update(Doctor record);

    Doctor findByUserId(Long userId);

    int countDoctor();

    List<Doctor> listDoctorPage(@Param("offset") Long offset, @Param("pagesize") Long pagesize);

    List<Doctor> listDoctorByUserIds(List<Long> userIds);

    List<Doctor> listRecommendDoctor(Long hospitalId, Integer quantity);


}